from audioop import reverse


grade=[100,98,97,76,98]
print ("原列表",grade)
grade.sort()
print("升 序",grade)
grade.sort(reverse=True)
print("降 序",grade)


print("2017~2018赛季NBA西部联盟前八名\n")
team = ["火箭","勇士","开拓者","雷霆","爵士","鹈鹕","马刺","森林狼",]
for index,item in enumerate(team):
    print("第",index+1,"名",item)


from random import*
a=[]
for i in range(10):
    a.append(randint(0,100))
for j in range(10):
    print(a[j],end='')
    print()
    print(min(a))
    a.sort()
    print(a)
    a.reverse()
    print(a)    

    from random import *
    a = [randint(0,100) for i in range(10) ]
    print(a)
    print(min(a))
    a.sort()
    print(a)
    a.reverse()
    print(a) 


    